package com.luhuiguo.cms.shared.rpc;

import com.luhuiguo.cms.shared.model.UserModel;
import com.luhuiguo.gwt.dispatcher.shared.rpc.Result;

public class GetAuthenticationResult implements Result {

    private static final long serialVersionUID = 7802938137089108004L;

    private boolean authenticated = false;

    private UserModel user;

    public GetAuthenticationResult() {
    }

    public GetAuthenticationResult(boolean authenticated, UserModel user) {
        this.authenticated = authenticated;
        this.user = user;
    }

    public boolean isAuthenticated() {
        return authenticated;
    }

    public UserModel getUser() {
        return user;
    }

}
